#ifndef CHAPTER7_H_
#define CHAPTER7_H_
#include <string>
class Literal {
public:
	constexpr Literal() :age(18), pi(3.14) {};
private:

	int age = 18;
	double pi = 3.14;
};

struct Data {
	int ival;
	std::string s;
};

class Account {
public:
	void calculate() { amount += amount * interestRate; }
	static double rate() { return interestRate; }
	static void rate(double);
	static const int cc = 4;
private:
	std::string owner;
	double amount;
	static double interestRate;
	static double initRate();
	static constexpr int period = 30;
	static constexpr int pcc = 1;
	static const int year;
	static int some;
	double daily_tbl[period];

	static Account ac;
};

double Account::interestRate = initRate();
const int Account::year = 2015;
int Account::some = 3;
void Account::rate(double newRate) {
	interestRate = newRate;
}

double Account::initRate() {
	return interestRate = .0;
}
#endif